﻿using Camc.Quality.RecordTable.FormBase;
using Camc.Quality.RecordTable.FormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.RecordTable.FormEntity
{
 public   class 箭体称重时多装少装产品记录表 : TableBase
    {
        public 箭体称重时多装少装产品记录表(int serialNum, Guid workStepEntityId, Guid processesEntityId, int sort, string fisrtDrawingNum, string firstDrawingName)
        {
            SerialNum = serialNum;
            WorkStepEntityId = workStepEntityId;
            ProcessesEntityId = processesEntityId;
            Sort = sort;
            FisrtDrawingNum = fisrtDrawingNum;
            FirstDrawingName = firstDrawingName;
        }
        public override string FormName { get; protected set; } = "箭体称重时多装少装产品记录表";


        #region A4_代号
        public override string FisrtDrawingNum_DisplayName { get; protected set; } = "代号";
        public override bool FisrtDrawingNum_Enable { get; protected set; } = true;
        public override bool FisrtDrawingNum_Show { get; protected set; } = true;
        #endregion

        #region A5_名称
        public override string FirstDrawingName_DisplayName { get; protected set; } = "名称";
        public override bool FirstDrawingName_Enable { get; protected set; } = true;
        public override bool FirstDrawingName_Show { get; protected set; } = true;
        #endregion
        /// <summary>
        /// 实测值
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="firstMeasuredValues"></param>
        /// <param name="secondMeasuredValues"></param>
        /// <param name="confirmResult"></param>
        /// <returns></returns>
        public MeasuredResultEntity SetMeasuredResult(MeasuredResultEntity entity, string firstMeasuredValues,string secondMeasuredValues,string confirmResult)
        {

            entity.SetFirstMeasuredValues(firstMeasuredValues, "数量", true, true, 0);
            entity.SetSecondMeasuredValues(secondMeasuredValues, "质量（Kg）", true, true, 0);
            entity.SetConfirmResult(confirmResult, "是否多装", true, true, 0);
            return entity;
        }
    }
}
